import org.apache.hadoop.ipc.ProtocolSignature;

import java.io.IOException;

public class MyInterfaceImpl implements MyInterface{

    // 实现加法
    @Override
    public int add(int number1, int number2) {
        System.out.println("number1 = " + number1 + " number2 = " + number2);
        return number1 + number2;
    }

    @Override
    public String findName(long studentId) {
        long studentIdValue = 20210123456789L;
        if (studentIdValue == studentId) {
            return "心心";
        }
        return null;
    }

    @Override
    public long getProtocolVersion(String s, long l) throws IOException {
        return MyInterface.versionID;
    }

    @Override
    public ProtocolSignature getProtocolSignature(String s, long l, int i) throws IOException {
        return null;
    }
}
